package cn.bass.marketing.convertor;

import cn.bass.marketing.common.vo.resp.MarketingStrategyRespVO;
import cn.bass.marketing.entity.MarketingStrategyDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * {@author}: LiuWei
 * {@version}: 1.0
 * {@since}: 2024-08-15
 * {@link}: cn.bass.marketing.common.constant.RulesConstant
 * 描述：权重规则枚举
 */
@Mapper
public interface MarketingStrategyConvertor {

    MarketingStrategyConvertor INSTANCE = Mappers.getMapper(MarketingStrategyConvertor.class);

    MarketingStrategyRespVO do2respVO(MarketingStrategyDO entity);

    List<MarketingStrategyDO> respVO2dos(List<MarketingStrategyRespVO> entities);

    MarketingStrategyDO respVO2do(MarketingStrategyRespVO dto);

    List<MarketingStrategyRespVO> do2respVOs(List<MarketingStrategyDO> dto);
}
